//
//  SmallDecisionsTextField.h
//  SmallDecisions
//
//  Created by 李付雄 on 2025/7/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface SmallDecisionsTextField : UITextField

@property (nonatomic, assign) CGRect   leadingViewRect;
@property (nonatomic, strong) AlignButton *leadingViewBtn;
@property (nonatomic, assign) CGRect   trailingViewRect;
@property (nonatomic, strong) AlignButton *trailingViewBtn;

@property (nonatomic, assign) UIEdgeInsets textEdgeInset;

@property (nonatomic, strong) UIColor *placeholderColor;
@property (nonatomic, strong) UIFont  *placeholderFont;
@property (nonatomic, strong) UIView *lineView;

@property (nonatomic, copy) void(^textFieldStartEditingAction)(SmallDecisionsTextField *textField);
@property (nonatomic, copy) void(^textFieldDidChangeAction)(SmallDecisionsTextField *textField, NSString * _Nullable text);

@property (nonatomic, assign) BOOL enableInput;

- (void)setLeadingViewTitle:(NSString * _Nullable)title
                          font:(UIFont * _Nullable)font
                         color:(UIColor * _Nullable)color;

- (void)setTrailingViewTitle:(NSString * _Nullable)title
                           font:(UIFont * _Nullable)font
                          color:(UIColor * _Nullable)color;
@end

NS_ASSUME_NONNULL_END
